package org.wolfengi.monitor.web;


import org.wolfengi.monitor.service.FShipFaultTypeCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author wolfengi
 * @since 2020-05-21
 */
@Controller
@RequestMapping("/shipFaultType")
public class FShipFaultTypeCountController {

    @Autowired
    private FShipFaultTypeCountService fShipFaultTypeCountService;


    @RequestMapping("/count")
    @ResponseBody
    public Map count() {
//        Map<String, Object> maps = fShipFaultTypeCountService.selectShipFaultTypeCount();
        Map maps = fShipFaultTypeCountService.setfShipFaultType();
        return maps;
    }
}
